<div id="top_out">
	<div class="out">
		<div class="top_ad center">
			<a href="">
				<img src="__CONTROLLER_VIEW__/img/top_ad.jpg" />
			</a>
		</div>
	</div>
	<div class="out_down">
		<div class="top center">
			<ul class="fl">
				<li><a href="javascript:;">邀请好友</a> |
				</li>
				<li><a href="javascript:;" onclick="shoucang(document.title,window.location)">加入收藏</a>
				</li>
			</ul>
			<ul class="fr">
				
				<if value="{$hd.session.user.uid}">
					<li>
						<span class="hello">您好，</span><a href="javascript">{$hd.session.user.username}</a>
					</li>
					<li>
						<a href="{|U:'Login/out'}">[退出]</a>
					</li>
				<else>
				<li>
					<span class="hello">您好，欢迎来到珍品网！</span>
				</li>
				<li>
					<a href="{|U:'Login/login'}">[ 登录 ]</a>
				</li>
				<li>
					<a href="{|U:'Login/reg'}">[ 免费注册 ]</a> |
				</li>
				</if>
				<li>
					<a href="{|U:'member'}">我的订单</a> |
				</li>
				<li id="shop">
					<a href="{|U:'Cart/index'}" class="shop">购物车<span class="count" id="totalNum"><if value="{$hd.session.cart.totalNum}">{$hd.session.cart.totalNum}<else>0</if></span>件商品</a>
					<div class="second">
						<if value="{$hd.session.cart.totalNum}">
							<ul>
								<li><h3>最新加入的商品</h3></li>
								<list from="$hd.session.cart.goods" name="$c">
									<li id="{$c.cart_id}">
										<img src="__ROOT__/{$c.img}" alt="" />
										<a href="{|U:'Index/content',array('gid'=>$c['gid'])}" class="goods_name">{$c.goods_name} {$c.attr_value}</a>
										<span class="price">￥ {$c.price}</span>
										<span class="num"> x {$c.num}</span>
										<a href="javascript:;" class="del" onclick="delGoods('{$c.cart_id}')">删除</a>
									</li>
								</list>
								<li class="account">
									<p>
										共<span class="num" id="goodsNum">{$hd.session.cart.totalNum}</span>件商品&nbsp;&nbsp;&nbsp;&nbsp;
										共计<span class="price" >￥<font style="font-size: 21px;"id="goodsPrice">{$hd.session.cart.totalPrice}</font></span>
									</p>
									<a href="{|U:'Cart/index'}" class="continue">去购物车结算></a>
								</li>
							</ul>
						<else>
							<div class="null">购物车内还没有商品，赶紧选购吧！</div>
						</if>
						
					</div>
				</li>
			</ul>
		</div>
	</div>
</div>
<div id="search" class="center">
	<div class="left fl">
		<a href="{|U:'index'}" class="logo">
			<img src="__CONTROLLER_VIEW__/img/logo.jpg" alt="" />
		</a>
	</div>
	<div class="middle fl">
		<form action="" method="get">
			<input type="text" name="keywords" value="UGG" class="fl" onclick="this.value='';" onblur="this.value='UGG'" />
			<input type="submit" value="搜索" class="fl" />
		</form>
	</div>
	<div class="right fr">

	</div>
</div>
<div id="nav_out">
	<div class="nav center">
		<div class="all_goods">
			<a href="" class="menu">全部商品分类</a>
			<div class="second" >
				<div class="sec_menu">
					<dl class="dl">
						<dt><i></i><a href="">品牌</a><b></b></dt>
						<dd>
							<list from="$brand" name="$b" row="3">
								<a href="{|U:'Index/brand',array('bid'=>$b['brand_id'])}">{$b.brand_name}</a>
							</list>
						</dd>
					</dl>
					<div class="second_list">
						<ul>
							<list from="$brand" name="$b" row='11'>
								<li><a href="{|U:'Index/brand',array('bid'=>$b['brand_id'])}"><img src="__ROOT__/{$b.brand_logo}" alt="{$b.brand_name}" /></a></li>
							</list>
							<li><a href="{|U:'Index/brand'}"><img src="__CONTROLLER_VIEW__/img/brand/24.png" alt=""></a></li>
						</ul>
					</div>
				</div>
				<list from="$category" name='$c1'>
					<div class="sec_menu">
						<dl class="dl">
							<dt><i></i><a href="{|U:'Index/Index/category',array('cid'=>$c1['cid'])}">{$c1.cat_name}</a><b></b></dt>
							<dd>
								<list from="$c1._data" name="$c2" row="3">
									<list from="$c2._data" name="$c3" row="3">
									<a href="{|U:'Index/Index/category',array('cid'=>$c3['cid'])}">{$c3.cat_name}</a>
									</list>
								</list>
							</dd>
						</dl>
						<div class="second_list">
							<list from="$c1._data" name="$c3" >
								<dl>
									<dt><a href="{|U:'Index/Index/category',array('cid'=>$c3['cid'])}">{$c3.cat_name}</a></dt>
									<dd>
										<list from="$c3._data" name="$c4">
											<a href="{|U:'Index/Index/category',array('cid'=>$c4['cid'])}">{$c4.cat_name}</a>
										</list>
									</dd>
								</dl>
							</list>
							<div class="quick"><a href="{|U:'Index/Index/category',array('cid'=>$c1['cid'])}">进入{$c1.cat_name}频道页>></a></div>
						</div>
					</div>
				</list>
			</div>
		</div>
		<ul class="middle fl">
			<li><a href="{|U:'index'}" class="cur">首页</a>
			</li>
			<li><a href="">品牌旗舰店</a>
			</li>
			<li><a href="">最新上架</a>
			</li>
			<li><a href="">奢侈品特卖</a>
			</li>
			<li><a href="">礼品卡</a>
			</li>
		</ul>
	</div>
</div>